package hu.bme.mit.Riflab.Drools;

public abstract class NodeEvent {
	public long timestamp;
	private int orderId;
	private String nodeName;

	public NodeEvent(long timestamp, int orderId, String nodeName) {
		this.timestamp = timestamp;
		this.orderId = orderId;
		this.nodeName = nodeName;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public String getNodeName() {
		return nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}

	@Override
	public String toString() {
		return getClass().getSimpleName() + ": " + nodeName + "[" + orderId + "]";
	}
}
